package com.hnd.test.service;

public class Person {
    private String name;
    private Pet pet;
    public Person() {
    }

    public Person(String name, Pet pet) {
        this.name = name;
        this.pet = pet;
    }

    public Person(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Pet getPet() {
        return pet;
    }

    public void setPet(Pet pet) {
        this.pet = pet;
    }

    public void say() {
        System.out.println("say================"+this.name);
    }
}
